﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ImportTool
{
    public partial class ImportTool : Form
    {
        string fileName;
        string fileContent;
        public ImportTool()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            DialogResult result = browseFileDialog.ShowDialog(); // Show the dialog.
            if (result == DialogResult.OK) // Test result.
            {
                fileName = browseFileDialog.FileName;
                try
                {
                    string text = browseFileDialog.FileName;
                    txtfileName.Text = text;
                }
                catch (IOException)
                {
                }
            }
        }
        
        private void button2_Click(object sender, EventArgs e)
        {
            fileContent = File.ReadAllText(fileName);

        }

        private void radioButton2_CheckedChanged(object sender, EventArgs e)
        {

        }

        private void FlatFile_CheckedChanged(object sender, EventArgs e)
        {

        }

        private void button1_Click_1(object sender, EventArgs e)
        {

        }
    }
}
